package create.factory;

/**
 * @author lzp
 * @Date:2023/2/23
 * @description: 数字转换工厂
 */
public interface NumberFactory {

	/**
	 * 将字符串转换为数字
	 *
	 * @param numberStr
	 * @return
	 */
	Number parse(String numberStr);

	/**
	 * 返回工厂实例
	 *
	 * @return
	 */
	static NumberFactory getInstance() {
		return INSTANCE;
	}

	NumberFactory INSTANCE = new NumberFactoryImpl();

}
